//
//  CommonNewsFrame.m
//  掌上宏力
//
//  Created by admin on 2017/6/7.
//  Copyright © 2017年 admin. All rights reserved.
//

#import "CommonNewsFrame.h"
//#import "BSNewsModel.h"
//#import "RemindModel.h"
//#import "RecommendModel.h"

@implementation CommonNewsFrame

-(void)setNews:(BSNewsModel *)news{
    _news = news;
    CGSize size = [Factory sizeWithText:news.title font:[UIFont systemFontOfSize:16] maxSize:CGSizeMake(kScreenW-40, CGFLOAT_MAX)];
    _titleF = CGRectMake(10, 10, kScreenW-40, size.height);
    
    _dateF = CGRectMake(kScreenW-135, CGRectGetMaxY(_titleF), 100, 20);
 
    _cellHeight = CGRectGetMaxY(_dateF)+5;
}
//-(void)setRemind:(RemindModel *)remind{
//    _remind = remind;
//    CGSize size = [Factory sizeWithText:remind.title font:[UIFont systemFontOfSize:16] maxSize:CGSizeMake(kScreenW-40, CGFLOAT_MAX)];
//    _titleF = CGRectMake(10, 10, kScreenW-40, size.height);
//    
//    _dateF = CGRectMake(kScreenW-135, CGRectGetMaxY(_titleF), 100, 20);
//    
//    _cellHeight = CGRectGetMaxY(_dateF)+5;
//}
//-(void)setRecommend:(RecommendModel *)recommend{
//    _recommend = recommend;
//    CGSize size = [Factory sizeWithText:recommend.title font:[UIFont systemFontOfSize:16] maxSize:CGSizeMake(kScreenW-40, CGFLOAT_MAX)];
//    _titleF = CGRectMake(10, 10, kScreenW-40, size.height);
//    
//    _dateF = CGRectMake(kScreenW-135, CGRectGetMaxY(_titleF), 100, 20);
//    
//    _cellHeight = CGRectGetMaxY(_dateF)+5;
//}


@end
